package com.neusoft.service;


import com.neusoft.entity.Admin;
import com.neusoft.entity.AdminQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

/**
 * @author Administrator
 */
@Component
@FeignClient(value = "provider-banji")
public interface AdminFeignService {
    @GetMapping("/admin/getById/{id}")
    Admin getById(@PathVariable(value = "id") Integer id);
    @PostMapping("/admin/login")
    Admin login(@RequestBody String account, @RequestParam("password") String password);

    @PostMapping("/admin/queryAll")
    Object queryAll(@RequestParam("page")Integer page, @RequestParam("limit")Integer limit, @RequestBody AdminQuery bean);
/*
    @PostMapping("/admin/save")
    Object save(Admin bean);

    @DeleteMapping("/admin/{ids}")
    Boolean deleteById(Integer[] ids);*/
}
